<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Mapa de Ips - MESI </title>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAQQRAsOk3uqvy3Hwwo4CclBTrVPfEE8Ms0qPwyRfPn-DOTlpaLBTvTHRCdf2V6KbzW7PZFYLT8wFD0A" type="text/javascript"></script>
        <script type="text/javascript">
        //<![CDATA[
        function load() {
            if (GBrowserIsCompatible()) {
                
            
            function Point(lat,long,html,icon) {
                  this.gpoint = new GMarker(new GLatLng(lat,long),icon);
                  this.html = html;
                  
               }               
               
               
               function Map(id,points,lat,long,zoom) {
                  this.id = id;
                  this.points = points;
                  this.gmap = new GMap2(document.getElementById(this.id));
                  this.gmap.setCenter(new GLatLng(lat, long), zoom);
                  this.markerlist = markerlist;
                  this.addmarker = addmarker;
                  this.array2points = array2points;
                   
                  function markerlist(array) {
                     for (var i in array) {
                        this.addmarker(array[i]);
                     }
                  }
                  
                  function array2points(map_points) {            
                      for (var i in map_points) {  
                        points[i] = new Point(map_points[i][0],map_points[i][1],map_points[i][2],map_points[i][3]);         }
                      return points;   
                    }                  
                  
                  function addmarker(point) {
                     if (point.html) {
                       GEvent.addListener(point.gpoint, "click", function() { // change click to mouseover or other mouse action
                           point.gpoint.openInfoWindowHtml(point.html);
                        
                       });
                       
                     }
                     this.gmap.addOverlay(point.gpoint);  
                  }
                  this.points = array2points(this.points);
                  this.markerlist(this.points);
            }  
                     
                var icon = new GIcon(); 
                icon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
                icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
                icon.iconSize = new GSize(12, 20);
                icon.shadowSize = new GSize(22, 20);
                icon.iconAnchor = new GPoint(6, 20);
                icon.infoWindowAnchor = new GPoint(5, 1);
         
                var icon = new GIcon(); 
                icon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
                icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
                icon.iconSize = new GSize(12, 20);
                icon.shadowSize = new GSize(22, 20);
                icon.iconAnchor = new GPoint(6, 20);
                icon.infoWindowAnchor = new GPoint(5, 1);
        
                    map_points = [['37.4192008972168', '-122.057403564453', '<p>IP = 173.194.45.6</br>Country: United States</br><font color=green></font></p>', icon], ['38.0167007446289', '-7.86670017242432', 'IP Numbers:</br>193.137.137.204 - Portugal - <font color=green></font></br>193.137.137.205 - Portugal - <font color=green></font></br>193.137.137.74 - Portugal - <font color=green></font></br>193.137.138.170 - Portugal - <font color=green></font></br>', icon], ['37.9832992553711', '23.7332000732422', '<p>IP = 94.71.2.233</br>Country: Greece</br><font color=green></font></p>', icon]];
             var map = new Map('map',map_points,1.757537,144.492188,1);
        

           map.gmap.addControl(new GMapTypeControl());

           map.gmap.addControl(new GSmallMapControl());


            }
        }
        //]]>
        </script>
        
        
         </head>
<body onload="load()" onunload="GUnload()">
<h1> Mapas de Localização de IP</h1>
<div id="map" style="width: 1000px; height: 600px"></div>
</body>
</html>